import http from '@/utils/http.js'
// 轮播
export const getBannerList = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/sys/selectBanners`,
        params
    })
}

// 首页底部联系方式
export const getFooterConcat = (params) => {
    return http({
        method: 'get',
        url: `/fitasty/api/sys/selectMerchant`,
        params
    })
}

// 商品查询列表
export const getPrudoctList = (data, instance) => {
    console.log(instance.proxy.loading)
    return http({
        method: 'post',
        url: '/fitasty/api/product/selectPage',
        data,
        app: instance.proxy.loading
    })
}


// 商品详情
export const getPrudoctDetailByID = (params) => {
    return http({
        method: 'get',
        url: '/fitasty/api/product/selectDetail',
        params
    })
}

// 商品分类
export const getPrudoctTypes = (params) => {
    return http({
        method: 'get',
        url: '/fitasty/api/product/selectProductGroup',
        params
    })
}



// 自选商品查询
export const getPrudoctMySelf = (params) => {
    return http({
        method: 'get',
        url: '/fitasty/api/product/selectProductSku',
        params
    })
}

// 查询加购商品
export const getAddGoods = (data) => {
    return http({
        method: 'post',
        url: '/fitasty/api/product/selectPurchase',
        data
    })
}

// 主题色
export const getSysColor = (params) => {
    return http({
        method: 'get',
        url: '/fitasty/api/sys/sysColor',
        params
    })
}